Add a height parameter to getnetworkhashps

Conflicts:
	src/rpcmining.cpp
Revert "Truncate oversize 'tx' messages before relaying/storing."

This reverts commit 7cc960f8f57e7fe90ee7aa0ccd3e3c6c89ec5a25.
Simplify storage of orphan transactions

Orphan transactions were stored as a CDataStream pointer;
this changes the mapOrphanTransactions data structures to
store orphans as a CTransaction.

This also fixes CVE-2013-4627 by always re-serializing
transactions before relaying them.
Performance optimization for bloom filters.

This reduces a peer's ability to attack network resources by
 using a full bloom filter, but without reducing the usability
 of bloom filters.  It sets a default match everything filter
 for peers and it generalizes a prior optimization to
 cover more cases.
Fix non-standard disconnected transactions causing mempool orphans

Conflicts:
	src/main.cpp
Update the bloom state on the real object, not the temporary one.

This resulted in just passing all transactions to filtered wallets
which worked surprisingly well, except where it didn't.
Track blocks requested by peers
Don't waste work on slow peers until they catch up
Use nChainWork in GetNetworkHashPS()
Longer term workaround for chainstate corruption from negative versions.

This also makes negative transaction versions non-standard.

This avoids an issue triggered in Bitcoin block 256818 where transactions with
negative version numbers were incorrectly serialized into the UTXO set.

On restart nodes detect the inconsistency and refuse to start so long as
a block with these transactions is inside the self-consistency check
window, logging "coin database inconsistencies found". The software
recommends reindexing, but reindexing does not correct the problem.

This should be fixed by changing the chainstate serialization, but
working around it seems harmless for now because the version is not
used by any network rule currently.

A patch free workaround is to start with -checklevel=2 which skips
the consistency checks, but the IsStandard change is important for
miners in order to protect unpatched nodes.
Fix out-of-bounds check
For getnetworkhashps, use min/max to calculate the block times.
Move Parse{Hash|Hex} to be usable by all RPC code

Conflicts:
	src/bitcoinrpc.h
configure: Prefer specific known-good versions of Qt metacompiler tools

Conflicts:
	configure.ac
Removed configure.ac
Make validateaddress provide redeemScript
Anoncoin version 0.8.5.2