Added a basic statistic action in the default controller.
A little template beauty.
Also added needed methods to the repositories.