[project] Collect the import, export, and contained packages

bndtools is doing a rebuild to calculate the package info so it can decorate the packages. This is of course doubling the build time … This patch collects this information from any build and makes it available anywhere.