Chat with dialogs on Angular.js and Socket.io