Clean up code. Add controllers.
Move controllers from views to index.html
Debug process of sending new msg