WIP: IJulia reorg to allow precompilation

This is what I have so far. It at least doesn't die on startup! I think something's still getting stuck in the eventloop/waitloop though, so I need to figure out what's going on because there's no IO going on.