Queueable upgrades

And as a cool bonus, commands are transferred from the old factory to the new one.

There's a small delay (two or three seconds) between transferring the build commands and the factory actually starting to build, I suspect it's the engine noticing the old factory was destroyed, so there's enough space for the new unit to be built.