Spacecmd kickstart import raw

The 1st commit exposes the **"kickstart import raw"** API to spacecmd. The 2nd one performs a small cleanup of the code.