CommonJS-free fixes
Replace kanso's "db" emulator with $.couch.
Stop using $.couch reconnection logic