Use a struct for entry entities

The use of a struct emphasizes the point that entites have no behavior
whatsover on them. Equality of structs is based on each instance's
passed in attributes, rather than object_id and hence serves the purpose
well.