Created JS function for refreshing messages
Added sending messages for controller
Completed adding messages without refreshing.
Removed debugger command
Fixed sending requests from not-dashboard pages
Changed controller. Now it sends only new messages.