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.
Just add an XXX here saying that this and checkTxOutputs() should eventually be refactored as they can probably share some code.