cloudant doesn't support json resource types, at least for _session posting/login, so hack in a solution for now