fixes #925 upgraded couchdb to 1.3

wrote some tests to ensure that CORS is working on all our servers
* from localhost
* from chrome extension