adding pre and html escaping to logging
adding plaintext and beginnings of markdown mode. markdown still problematic as so much markdown conflicts with other gw markup, need some cleaning here