Another attempt at getting cgi working

A bit simplier then before, hopefully better then before. Creating html and graphs from cgi.