Closes github ticket #6.
Uses urlencode, which doesn't exist in batteries-included. Implementing it might have been a bit of overkill, but I'm sure it will have more uses (like base64 in the past).
Also map a few more known symrefs.
Doesn't handle the detached HEAD case yet.