Move ugly debug to Settings  Labs

 closes #4534

- Adds new Labs route
- Wires route in settings page
- Move and rename debug templates and logic to labs
- Redirect /debug to settings/labs
I think we should either rename this variable to indicate what it's holding or possibly just get rid of it altogether as it doesn't seem to be used anywhere.