Added support for 'sendrawtransaction' to work with bitcoind and other minor changes.