Logger: added tests for the Log object

This mainly included using sinon to watch the logWriter functions
and see how they were called.

Other changes:
- Ran full build
- Added sinon as testing helper