Subcategories management improvements

Signed-off-by: Vadim Dvorovenko <vadimon@mail.ru>
Merge branch 'MDL-20996-24-1' into moodle_kemguki_ru