[doc] Add testnet hidden service port to the example tor config.

Seems like there are a lot of advertised testnet HS nodes that
don't actually work. Lack of the testnet port on the example
HS config might be one reason.
Merge pull request #3089 from gmaxwell/hsport

[doc] Add testnet hidden service port to the example tor config.
Merge pull request #2933 from sipa/leveldb113

Merge upstream LevelDB 1.13
Merge pull request #3077 from sipa/chain

Refactor/encapsulate chain globals into a CChain class
Avoid core dump if rpc port is in use.

The cleanup code needs to check for NULL rpcworkers thread group.
Allow SendMessages to run partially without cs_main

SendMessages() tries to acquire a cs_main lock now, but this isn't nessecary
for much of its functionality. Move those parts out of the locked section,
so they can always be performed, and we hold cs_main for a shorter time.
Run node deletions outside of cs_vNodes
Push down cs_main locking in ProcessMessage