Separate out interp bits from IRJSProgram so IRJSFunction will be able to use it too
Mostly hooked up but interpreter is missing impl for define_function