TODO ACCOMPLISHED: Broke out onEvent functions inside chat controlller.

RESOLVED: Bug about heroku connections is resolved apparently.