objstorage: add check_config method
The check_config method does a few sanity checks to make sure that the
object storage is properly configured.
This allows us to bail out early if a configuration is somehow broken,
or if an upstream server doesn't reply.