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
Yeah i couldn't see what is was doing so I ran with that.