Bug 898364 - Moving conversation thread database from Gecko to Gaia by introducing DataStore API.

Very initial draft, created for the discussion and feedback purpose.