Added a bunch of debug messages to help other developers understand what is happening. Use "DEBUG=* node app.js" to see messages.