convert getdifficulty to getBlockHeaderBySha to save some cycles.
change some more code over to using newer btcdb apis.
implement the getinfo  rpc command.

This contains some wallet inforamtion, but bitcoind if wallet is
disabled returns just the non wallet information. we do the same.