Merge pull request #49 from ksrikanthreddy/master

Modified the chat controller to avoid jquery usage.
When user logged in, broadcast to appController.js to listen about the login--> then get all contacts and connect to all the contacts through chat using socket.io chat connect.
Save the contacts information in localStorage.
Get the all the communicationsIds with each contact and save in localStorage.
This functionality was previously in chatController.js. Now, moved to appController.js.