Renamed the init library to startup, combined common code