Change init/shutdown with NAPI_INTERNAL, add nitroscript pseudo-handling (no tests yet)