categories_spec.rb rework completion, related libs updated; edit_snippet and edit_categories specs still to be done