Filter categories when creating exercise

Categories are now filtered to show only those that belong to the
course instance when creating exercises.