Update script loader, structure to account for app dependencies.