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'd omit the part about the transaction no longer being oversized because in reality this function won't ensure that.