Resource Loading: use Promises, encapsulated code to support loading of scripts and single application components