Adds options.stackFunction for passing to error.prepareStackTrace
Merge pull request #50 from brandoncarl/master

Adds options.stackFunction for passing to error.prepareStackTrace