Add admin capability for categories

Add admin section to user show page.
Add category index page.
Refactor the finding of active category types and the auto-generation of column widths into reusable modules.
Inconsistent indentation detected.