Lazily load profile view code when the profiles panel is actually
loaded. This refactor was started; the incompleteness caused
errors when trying to capture a breakpoint scanning screenshot.

Closes #222.