Impelment the gettransaction rpc command.

Closes #44.