Course form plugin

Some minor changes except for the user enrolment change. But form is working as-is, so no real hurry to pull these changes. Can wait till tonight or tomorrow.

Thanks!