Added a way to change databases
Some bug fixes
Added CORS support for cloudant