Added os.loadAPI and os.unloadAPI.
Added support to load compiled chunks to loadfile.