Move chat bar to the top.
Refactor main.controller.
Fix tests.
 Remove thing socket config.