Block in some RPC code, implement getutxocount RPC
Add a bunch of docs, generalize JSONRPC stuff, add `getblockcount`, fix utxoset updates