WIP moving pages to resource views

Do not merge. This is progress toward implementing #7543.

TODOs:
 - [ ] Convert plugin page handlers to the same format
 - [ ] Don't expose segments array to resources views (use set/get_input instead)
 - [ ] Move breadcrumb building into resource views ([see](https://github.com/Elgg/Elgg/pull/7679/files#r21842694))
 - [ ] test thoroughly