Added getnetworkhashps rpc method

Added getnetworkhashps rpc method. Now network hash rate can be obtained.