Several bugfixes to rpc_wrapper + adds a wrapper for listtransactions