Minor fixes

* Added check for TEST variable in main.coffee to prevent ReferenceError
* Fixed reference in runserver.py
Improved logging and message sending

* helpers.logging now uses inspect to log arguments passed into functions
* message.sending now uses inspect to construct 'args' field in message sent