Updating third-party libraries.
Refactoring chat controller

Also trying to get Angular UI Bootstrap dialogs working.