Bug fixes and extra features

* Fixed getnetworkhashps parameter cast
* Improved getnetworkhashps, taking into account difficulty changes when requested block count spans multiple retargets
* Added -walletnotify & -alertnotify from Bitcoin