Updated 3 for SDL support

Moved sub packages to `PackageInfo` and added `subPackagesImported` array in `PackageInfo` to store whether a sub package was "imported" or "inline".  This is used in the `toJson` function to know whether or not a subPackage was imported.