Fix addnode "onetry": Connect with OpenNetworkConnection
ProcessGetData(): abort if a block file is missing from disk
LoadBlockIndexDB(): Require block db reindex if any blk*.dat files are missing.
SetupEnvironment() - clean commit
Fix NameError in macdeploy script
Merge pull request #4174

5248ff4 SetupEnvironment() - clean commit (Stuart Cardall)
Merge pull request #4173

8c93bf4 LoadBlockIndexDB(): Require block db reindex if any blk*.dat files are missing. (Ashley Holman)
7a0e84d ProcessGetData(): abort if a block file is missing from disk (Ashley Holman)
Remove fDaemon flag checking on return from main(), which is useless and looks really strange.
Remove extraneous c_str
Merge pull request #4199

0a59723 Remove extraneous c_str (R E Broadley)
Merge pull request #4188

c6e36b0 Fix NameError in macdeploy script (Federico Bond)
Merge pull request #4197

0b78ba8 Remove fDaemon flag checking on return from main(), which is useless and looks really strange. (Huang Le)
remove CWallet::AddReserveKey which is never used
remove CTransaction::IsNewerThan which is never used
remove LogException( ) which is never used
remove LookupHostNumeric( ) which is never used
remove GetMedianTime( ) which is never used
remove CPubKey::VerifyCompact( ) which is never used
Add missing LOCK(cs_main)
gitian: Add OSX build descriptors

Github-Pull: #4185
Rebased-By: Wladimir J. van der Laan
Rebased-From: bb5da27, 2288206, 7fe8fe6, f76db78, ebcf375, fa1ed7c, 397e9b8