Complete refactoring of couch_js. In particular, the cURL bindings have been rewritten to be more useful and easily applied in command line scripts.