deprecate get_course_category(), change usage to coursecat
deprecate create_course_category(), avoid direct DB update of table course_categories

changed to usage of
- coursecat::create()
- coursecat::update()
temp commit to make sure categories exist