MDL-37193 Course categories are now managed in /course/manage.php

Switching between categories view and edit no longer depend on global editing mode
/course/index.php and /course/category.php do not contain editing code

manage.php improvements
Started merging course/index.php and course/category.php