Added basic pagination for reports.
Forgot the associated reports page.
Added code to flatten json's object hierarchy.