datastore: Introduce Key type

Related to #73 and #39.
Done.