Fix code quality issues identified in f3cbf78
New JS: system.locationFromCode(...)

Makes populator named locations usable by other scripts for random (not seeded) vectors
More pirate AI work

Still not finished...