datastore: Adding support for embedding keys and filtering by keys

Fixes #39 and #73.