Check if course code already exists

When creating a new article, this ensures that you don't use
a course code that is in use.
Merge pull request #210 from stianjensen/course-code-exists

Check if course code exists when creating a new article