Add git and mercurial support.

Installing packages using pip may require hg or git, and building packages from source may require python-dev - so installing all of these in the base image.