Log categories.
Generate list of categories.

Also tag each event with a class for it's category.
Add category list and color codes.