Changed API to return proper JSON for the page
switched to async page loading
Merge branch 'new_page_api'