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.
Minor nitpick: it'd be nice to rename this to 'removed' to be consistent with popInput