Comment about running on aws.
First bit of code cleanup, tested.
Added closeConnection.
Only some refs to ccps can be replaced by this.

Inside a callback, the context is wrong.
Shorter debug message.
Fun with requirejs.
Untested but possibly improvements.
Maybe shuffled.