Make debug an authenticated route
Merge pull request #2917 from jaswilli/debug-cleanup

Make debug an authenticated route