Inject HttpClient and Json instances and clean up
Allow HTTP status code 300 for Glance version negotiation