Contributors graphs feature for GitLab

Created tests and refactored some code along the way

Added stat graph util spec, refactored code

finsihed up tests and refactors

finsihed up tests and refactors
Merge pull request #4212 from karlo57/feature/graphs

Contributors Graph