Display network hashrate in public API

Instead of 0 show the actual hashrate, still shows 0 if unable to
connect to RPC server.

Fixes #511