Populate connections field in getinfo RPC.

The JSON object returned from the getinfo RPC contains a connection count
field that was not being populated.