Implement getnetworkhashps RPC.

Closes #87.