Added test of period resolving in stats

 - Also fixed default values for period selector in frontend
Added tests for graph data preparation
Merge pull request #83 from mex/statistics-test

Adds test of period resolving in stats