Add rollback last output functionality

Note that this does not include the transaction finalization which is
part of the rollback last output procedure in the opentransactions
wiki.
I didn't think about this when implementing the rollback. Thinking about it now, though. I'll probably give it a go.