huge refactor + total wins per team and flags per team

added most wins and total flag caps.
enforced jshint.
refactor into log fetching service, game stats service and cross game stats service.