Fixed bug.
Another fix for chat controller.
Another major refactor job. Fixes #35