Some improvements to categories:

* Selected categories are checked in ontologies#edit.
* Show users ontologies on the right in categories#show.
* Refactoring.