T-12: Add sub entities (and parnet entity relation)

Added code generation for sub/parent entities.
Unique constraint, DataContractSerialization and namespaces