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've strengthened the tests so I also check the value of the TxOuts and the outpoints on the TxIns.