Refactored page json handlers to restrictedpage handlers
Added json page handlers
Finally implemented main site page editing