Cloudant login and long polling of _changes feed