Fix leak of json_connection objects

For the first time, json_connections will be destroyed when we're done
with them. As an added benefit, the server now closes TCP RPC
connections it's done with.
Revise some prerequisites in the API
Merge branch 'develop' of github.com:BitShares/bitshares_toolkit into develop