Rearrange ChatController methods. Remove connection() from index.js.

ACE-29