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

Update for latest git/pip, add tests and expand README.

This doesn't try to work with older pip. We could try to adapt to the version in use, but I'm not sure it's worth the work.