First AngularJS draft for sending and fetching messages from the server