git-squash: Improve error handling
git-squash: Allow usage as library
git-squash-files: Assume HEAD if not commit given