Correct cursor given to pager
First draft of statistics view

Added new statistics aggregation.
Created a first draft of the statistics view.
Om 0.5.0-rc1