Catch up with bitcoinj API change: close() -> settle()
Fix a server bug that was introduced with the CLI work.
Start of a refactoring to allow the client to match whatever the servers network is.