Misc cleanups. Reintroducing trapped_methods.

Doesn't run yet. Need to hook up native-finding logic with JVM, and hook
the JCL natives into the build system.