As mentioned on IRC, the mempool code always seemed inside-out to me. This set of commits updates main.{h,cpp} code to create a new CTxMemPool class.
This is essentially just code movement and renaming. No behavior changes should occur [that have not already been submitted separately as independent pull requests].