#27476 Localize command now tries to switch more intelligently.

Previously, the `tank localize` command would first copy and set up the core api for a pipeline configuration and once that was done it would copy all engines, apps and frameworks across. This caused a potentially extended period of time where the pipeline configuration was in half-completed state and wasn't operational. This was causing issues in production.

This fix moves things around so that the apps and engines are copied first, and then the API is copied. While not a perfect fix, this should hopefully still resolve most issues.
Tiny : extra spaces added it seems.