Add flag to rewrite Java-initiated exception stack traces.

The new flag is rewrite.java.trace=true and will rewrite all Java
exceptions to reflect the Ruby trace. This may be safe to have on
all the time, but the overhead of rewriting the exception may be
enough to leave it off.

Fixes #1313