Add further tag support for add_category.php.

Part of the changes for SHC 2014.
Better parsing and category support in autofill.

Part of the pre-SHC 2014 changes.