MDL-32526 Course: After creating course user should be redirected to newly created course

After creating a new course if user has capability to enrol users then
enrol user page should be visible else user should see newly created course
MDL-37572 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