Change the version to 5.1dev. (dm)
Add support for git revisions (commits). (dm)