Improve list update and modularized the population of categories.

The side bar category list now updates when new categories are added via
the category manager (when deletion is implemented, list will also
update by adding a single line to the deletion button listener).