cgi/html: Implement basic category view

warning/critical state and graphs without explicit categories are
not supported yet.