Moved to a proper module system.

JI files can be loaded into the global scope and then that scope can be
passed to a userland script.