Import collections and api helpers from go-store-service.

Why do we do a shallow copy followed by a deep copy?