packageFile now uses promises

The packageFile class now uses promises to ease loading of individual
packages.  The packageFileList class has been modified accordingly.