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 think it would be better to make sure this assumption is true in a test instead. Otherwise we'd have to pass the net parameter to the pop function and also have it return an error.