replace newline characters with <br/>

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")