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