Logging and Tests

Just adding some ideas for a logging module and setting up some
nodeunit tests.
Merge pull request #16 from doowb/logging

Logging and Tests