Added initial implementation of logging

Right now there's no debug logging available. Added some rudimentary logging to stdout and some debug information to the logger.
Merge pull request #29 from dotcloud/fix-logging

Added initial implementation of logging