Allow top-level references to external projects from other external projects

Also partial work on automatic packaging for projects