support dstore instead of dojo/store
allows more flexibility when using dstore like providing your
own ranging function. Also add atomic methods for add, remove,
update, move.
fix bug