Add ability to collapse priority or category headers (fixes #36)