Merge pull request #21 from LocalData/offline

First piece of offline mode
Add the IDB adapter for Firefox/IE10 support