All the refs worth knowing: Implementation of ref updating and deleting.

This PR implements the updating and deleting of refs according to the specification in the GitHub API.

https://developer.github.com/v3/git/refs/#update-a-reference
https://developer.github.com/v3/git/refs/#delete-a-reference

Let me know if there are any changes that need to be made! :)