Give a friendly error message when someone tries to create a course with a duplicate name

Fixes #230.