Student Notes: Templatable Categories

Student Notes: added ability to have category templates (be warned, old
categories will be lost in the upgrade)