Refactor stats controller.
Merge pull request #45 from bahartmann/master

Refactor stats controller.
Merge branch 'master' of https://github.com/CWI/mobile-stats

Conflicts:
	app/controllers/stats_controller.rb