Add class ``Category`` to models.py

The new class is an integral part of the "priority categories" feature. It
allows users to create pre-defined searches based on sets of tags.