Add stash library to prepare for reset #7 / revert #8 and improve commit.