Added git_stash_apply() and git_stash_pop() APIs
Fixed deleting refs in local remotes not working anymore