Upgraded gitpython dependency to version 0.3.1 and added latest commit checking and smarter threading.