Return hash of written obj
Allow ref to be set
Add code for getting current branch name
Support basic committing