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.
That would be safe so long as you never try to reuse that map somewhere that you expect every ouput to have an entry.