Move libgit2-related things to a branch
Iterate towards API write support
Add a passing API POST test and prettify incoming NexSON

We now correctly return an HTTP 400 when invalid JSON is POSTed to the API.
We also use json python module to "prettify" incoming NexSON, which means
sorting keys and indenting 4 spaces.