A wrapper around some basic git repo functionality.

Also a .gitignore file.
Address code review comments.
Merge pull request #1 from benjyw/repo

A wrapper around some basic git repo functionality.