Entity#to_hash and Strategy#from_hash so entities can be instantiated and serialised locally.