Implement git_repository_set_head(_detached)

This closes #88

Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>
Merge pull request #89 from tchap/set-head

Implement git_repository_set_head(_detached)