Removed hardcoded category grouping.

Replaced with a new field "type" only used for dictating which
template to use. Category grouping can now be done via regular
grouping.