Precompile and save core scripts.