replace newline characters with <br/> to make multiline messages pretty

Added function to replace newline characters with a <br/> so messages with multiple lines will display nicely.
![Before and After](http://i.imgur.com/NdvMcUn.png "Before and After")