Added escaping of html tags (other than 'IMG' and 'A' tags).  also extracted the message convertion functions into MessageUtils class.