Modernized developertools.BuildApiScript.
Merged master.