(#1068) - cache websql dbs
(#1068) - cache websql dbs

Safari 7 starts throwing DOM Exception 11 if
we open up too many db handles, which crashes
our unit tests. Caching them fixes that.

We actually already tried this once before in
6575e8d490fbc745242edf72090598a72df6f120, but
we forgot to put the cachedDatabases outside
the constructor method.

KlausTrainer/pouchdb,greyhwndz/pouchdb,slang800/pouchdb,nickcolley/pouchdb,microlv/pouchdb,shimaore/pouchdb,bbenezech/pouchdb,colinskow/pouchdb,nicolasbrugneaux/pouchdb,elkingtonmcb/pouchdb,microlv/pouchdb,marcusandre/pouchdb,tohagan/pouchdb,p5150j/pouchdb,cshum/pouchdb,nicolasbrugneaux/pouchdb,microlv/pouchdb,HospitalRun/pouchdb,shimaore/pouchdb,p5150j/pouchdb,seigel/pouchdb,elkingtonmcb/pouchdb,jhs/pouchdb,ramdhavepreetam/pouchdb,pouchdb/pouchdb,HospitalRun/pouchdb,nickcolley/pouchdb,asmiller/pouchdb,marcusandre/pouchdb,ntwcklng/pouchdb,KlausTrainer/pouchdb,lukevanhorn/pouchdb,johnofkorea/pouchdb,lakhansamani/pouchdb,greyhwndz/pouchdb,colinskow/pouchdb,Charlotteis/pouchdb,evidenceprime/pouchdb,Charlotteis/pouchdb,garrensmith/pouchdb,yaronyg/pouchdb,janraasch/pouchdb,cesarmarinhorj/pouchdb,marcusandre/pouchdb,patrickgrey/pouchdb,mwksl/pouchdb,lakhansamani/pouchdb,patrickgrey/pouchdb,callahanchris/pouchdb,Dashed/pouchdb,pouchdb/pouchdb,janraasch/pouchdb,mattbailey/pouchdb,jhs/pouchdb,willholley/pouchdb,Actonate/pouchdb,TechnicalPursuit/pouchdb,TechnicalPursuit/pouchdb,mainerror/pouchdb,HospitalRun/pouchdb,daleharvey/pouchdb,cshum/pouchdb,asmiller/pouchdb,h4ki/pouchdb,janl/pouchdb,TechnicalPursuit/pouchdb,elkingtonmcb/pouchdb,colinskow/pouchdb,slang800/pouchdb,ntwcklng/pouchdb,nickcolley/pouchdb,mwksl/pouchdb,willholley/pouchdb,cdaringe/pouchdb,asmiller/pouchdb,garrensmith/pouchdb,willholley/pouchdb,ramdhavepreetam/pouchdb,crissdev/pouchdb,nicolasbrugneaux/pouchdb,Dashed/pouchdb,callahanchris/pouchdb,tyler-johnson/pouchdb,cesarmarinhorj/pouchdb,Knowledge-OTP/pouchdb,adamvert/pouchdb,Actonate/pouchdb,lakhansamani/pouchdb,johnofkorea/pouchdb,KlausTrainer/pouchdb,yaronyg/pouchdb,shimaore/pouchdb,callahanchris/pouchdb,yaronyg/pouchdb,mattbailey/pouchdb,optikfluffel/pouchdb,ntwcklng/pouchdb,cdaringe/pouchdb,lukevanhorn/pouchdb,mikeymckay/pouchdb,tyler-johnson/pouchdb,pouchdb/pouchdb,bbenezech/pouchdb,Actonate/pouchdb,bbenezech/pouchdb,crissdev/pouchdb,crissdev/pouchdb,Charlotteis/pouchdb,tohagan/pouchdb,adamvert/pouchdb,daleharvey/pouchdb,tyler-johnson/pouchdb,ramdhavepreetam/pouchdb,Knowledge-OTP/pouchdb,tohagan/pouchdb,cdaringe/pouchdb,h4ki/pouchdb,mattbailey/pouchdb,slang800/pouchdb,patrickgrey/pouchdb,seigel/pouchdb,mainerror/pouchdb,mikeymckay/pouchdb,mikeymckay/pouchdb,greyhwndz/pouchdb,jhs/pouchdb,p5150j/pouchdb,johnofkorea/pouchdb,Knowledge-OTP/pouchdb,Dashed/pouchdb,janl/pouchdb,mwksl/pouchdb,garrensmith/pouchdb,optikfluffel/pouchdb,janraasch/pouchdb,daleharvey/pouchdb,cesarmarinhorj/pouchdb,mainerror/pouchdb,seigel/pouchdb,lukevanhorn/pouchdb,h4ki/pouchdb,cshum/pouchdb,optikfluffel/pouchdb,adamvert/pouchdb,janl/pouchdb