Enable some whitespace trimming.
Merge list & tree rendering logic.
Display a "New category" prompt when in admin mode.
Use the shorthand notation for HTML classes.
Avoid line breaks in <title>.
Update bootstrap & bootbox.