add level_for_type utility method
use level_for_type in nagios code
add colour to event list
fix backlink from event page to host