Prof pages

Ready for a review, some UI elements may be changed but the core seems good. 

Closes #142
Is this to check whether the view is for the course page or the prof page? I think it's more explicit and robust to pass a flag to the view instead.