Display messages to browser that are sent via API

This is my initial hack on displaying messages to the browser that are sent via API as well as DOM. This closes udryan10/water-cooler#6 for now but I plan to re-visit it later and improve the code and write out some test cases.