added a message/line buffer to Logger (possible problem when using logger.msgElement: it won't find buffered elements, because they're not part of the DOM tree)