Clone from https://gitorious.org/moodle-tool_uploadcoursecategory/