Added classes for transforming entities to data transfer objects and back.