few fixes, added checkpoint, getprimes RPC, etc
getnetworkhashps rpc fix