MDL-38501: course: clean up bulk action code
MDL-38501: add bulk action to course categories.
- add bulk show/hide course categories
- add bulk delete to course categories
MDL-38501: clean up code