Adding test coverage for contributor statistic handler, and some refactoring.
Merge pull request #2 from rhyolight/ContribStats

Adding test coverage for contributor statistic handler, and some refactoring.