Team membership controller

As well as teams controller and user sessions controller.

Unsure about Course reference in methods, it seems to be referring to every course, not sure whether current_course is needed for these method calls.