gitstats: Moved the commit information into a seperate class