Bug 985728 - Improve storage access time by leveraging indices

Added helper methods to DB to look up object by indices or key.
Changed sync processing loop and other places to use index/key look up.
Merge pull request #16 from yor-mozilla-com/fix985728

Bug 985728 - Improve storage access time by leveraging indices