[DO NOT MERGE] Implement Stash API.

Based on https://github.com/libgit2/libgit2/pull/2705

Not in master yet, adding so I can test locally.
What if he *wants* to resolve the conflicts because he's done some work in his workdir he'd like to keep?