add field is_graded to courses. fixes #284
small refactoring around the SelectCourseForm