Added cgi for reading logs & dumping stuff JSON style; fixed some syntax