Ref #287, moves the function courses_my_courses to a method in the course model. Also several small fixes based on feedback.