issue959 refactoring commit

* Use formsets for teachers 
* Use ink class for forms
* Replace make_teachers_list function by a list comprehension (one line)
* Only use generate_test_certificate to generate the certificate. Writing the response and handling errors are now done in the view (course_detail)