Swift Auth Middleware backed by the Cloudstack API.