Configure TravisCI to pull pkgs needed for tests.
Implement getreceivedbyaddress RPC.

Unlike Bitcoin Core wallet, this implementation does not ignore
coinbase transactions.
Fix a couple comments