Fixed breaking changes from saction 0.4, and removed deprecated calls to sanction.client