Break out all the top level apis into install.c.