Snapshot/Restore: Add repository validation

Adds automatic and manual verification of repository settings and access rights.

Fixes #7096 

at some point we should have a XContentActionResponse base class that has this tostring method ;) something for fixit friday?