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.
We could still have one entry for every output in the map, we just need
to set its value to an empty list in the case you described.