Added id generation for all entities and added REST methods to create entities.