upload.py: early detection of site capabilities

If site is not enabled to upload or user han no right, the script quits
immediately.

Bug 69090

Change-Id: I305b4fb18cf87797c551d7978e0f69ffe61cb5db
Merge "upload.py: early detection of site capabilities"