Local store upsert and delete use an array

Modify core data store and offline test helper to use updated
datasource protocol.