Remove coinbase-dependant transactions during reorg.

This still leaves transactions in mempool that are potentially
invalid if the maturity period has been reorged out of, but at
least they're not missing inputs entirely.
Remove txn which are invalidated by coinbase maturity during reorg
Make CTxMemPool::check more thourough by using CheckInputs
Make CTxMemPool::remove more effecient by avoiding recursion
RPC-test based on invalidateblock for mempool coinbase spends
Remove useless removed-tx tracking from mempool remove calls
Also mark double-spends as dirty when SyncTransaction'ing
New pull tester which adds a rather simple large-reorg test
Dont run big reorg test with DEBUG_LOCKORDER
Extend timeout further?
Log tester output to file instead of stderr