(#136) - WIP - get tests passing against cloudant

So far it seems this can be solved just by changing our tests plus adding maybe a few workarounds to http.js for edge cases (or just skip them in the tests).
this shouldn't be inside a promise, why isn't inside a try/catch?