Check that the password is not undefined
Log also data parameters in the event publisher
More flexible logging configuration allows, for example, redirecting
logs to a file instead of the console.
Merge pull request #80 from futurice/logging

More flexible logging configuration
Merge pull request #79 from futurice/fixes

Minor changes to the password checking and logging
New API endpoint GET /stats. Shows publishing and subscriber statistics
Review and cleanup the last commit by Antti.
Refactor pushd.coffee, otherwise it is slowly becoming unreadable.