cgi/html: Implement basic category view

warning/critical state and graphs without explicit categories are
not supported yet.
M::M::U: Export plugin/field directives for custom graphs to SQL
cgi/html: Fix URLs for comparison views