Fix check for looking only at base packages in PackageManager.getPackage. Fixes #214.
Fix Package.toJson and improve diagnostic output in case of JSON parsing errors.
Don't try to determine the default configuration before downloading all dependencies. Fixes #213.
The externally defined sub-packages don't have the name declared in the base package. This eliminates the double definition of a sub-packages name.