Update for latest git/pip, add tests and expand README.

Updated to work with recent pip and git (pip 1.4.1, git 1.8.5), and added a test script to make sure I didn't break anything, as best I can tell.