Fixed logging system, added some related html tests