Support specifying an endpoint type to glance

In our environment, the publicURL for glance is https with a self-signed certificate and the internalURL is plain http.  So we require an option to specify the endpoint type to use for importing the image.