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.
Merge pull request #9 from tkreis/cleaning_code

Cleaning code