Fixes for various Deltacloud::API middleware issues