Added config queryanalyzer.global.php.dist.
Pulled code out into smaller methods
Created  wrapper classes for the profiles collection and a specific profile. Refactored the view to use those instances of those classes.