Update repository version

This patch adds a bunch of methods to RefDataManager that allows to retrieve the last version of a hg repo. It also adds a a django command extension that let to do it from the command line.