Use get_volume_api_from_url from cinderclient.

And some other small fixes.