Guess port based on protocol if we run on standard ports and in the browser. Closes COUCHDB-213.
Guess port based on protocol if we run on standard ports and in the browser.
Closes COUCHDB-213.

git-svn-id: cddd53339f8fd45d5e26e8b408ccee250f6290a7@737346 13f79535-47bb-0310-9956-ffa450edef68

benoitc/couchdb-old,benoitc/couchdb-old,benoitc/couchdb-old,benoitc/couchdb-old,benoitc/couchdb-old