Refactored client's store api.
Generalized store commits API.