Remove debug statements
Remove use of $_GET in favor of request
Remove tests in loops
Remove unused use statements
Merge pull request #617 from romainneutron/remove-debug

[3.9] More code cleanup