Add support for asynchronous feature detection
Fix IndexedDB feature detection (esp. FF priv mode, fixes #621)