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'm finding it really hard to understand the relationship between the values here, in order to understand what the test is doing. I think we could make that clearer with better names for those fields. Thinking about that