Bug 989929 - [Contacts][Refactor] Create Contacts indexed DB library to ...

...support synchronization from the Global Contacts Datastore
I have commented the code to make it clearer