New RPC method (getdifffromtargetbits) & minor fixes (casts) on getnetworkhashps