First attempt at writing rebuildDatabaseFromGitolite method.
It has not been tested at all and almost certainly contains bugs.
Merge branch 'master' of github.com:ucam-cl-dtg/urop-2014-git