Initial native registration mechanism.

For use by JCL natives, which we'll load up when the script loads.

I also realized that doppioh accidentally also grabbed trapped_methods, so
I may need to move those out.