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
Update middlewares to work on the specified express without warnings.
Merge pull request #81 from futurice/remove-warnings

Update middlewares to work on the specified express without warnings.
Revert previous default value for gateway and address parameter in APNS configuration