Logging and Tests

Just adding some ideas for a logging module and setting up some
nodeunit tests.