initial commit

added management commands and refined progress code

added detached_categories in command