Fixed path errors in build scripts.

xUnit would fail to run the tests if the path had spaces.
Implemented exception logging
Merge pull request #17 from snebjorn/Logging-exceptions

Added support for logging exceptions