clean up stashing and add support for version='all' that stashes all history