Better stack traces

Replaces the stack trace handler with a slightly more extensible one, based on the handler in streamlinejs. This also preserves function names in the stack trace.