Use config.reportDir when storing reports/images
Modify config to include reportDir
Better error handling

Now with stack traces.
Remove redundant code.
Merge pull request #8 from Whizy/errorreporting

 Error reporting improvements.