Fix UploadFiles and UploadRPM error handling

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
Clean up imports in capstan.go

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>