When a callback is passed into compileFile, catch all errors thrown by compile and pass the error to callback
adding test case and linking
Merge pull request #340 from bohnman/handle-compile-errors-gracefully

Catch errors and send to callback if compileFile fails.