Support custom stacktrace middleware

Adds new option :stacktrace-middleware, a middleware function that
handles exceptions.

See #20
Merge pull request #21 from magnars/custom-stacktrace-middleware

Support custom stacktrace middleware