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.