(#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).