Upgrade loader to take arrays of things to load and add overall onload callback