added most wins and total flag caps.

enforced jshint.
refactor into log fetching service, game stats service and cross game stats service.