Moved logger to it's own lib, so files can just require it.
Single pass over all source files to use the logger over console.log/error.
Also added strict mode to all source files.