added csrf_token to invite students form
reorganized create course page a bit
pep8 cleanup of course app