Made logging more uniform, made a html module to unescape text and sanitize contents.