abstracted the serializations classes.

Added classes for the DataContracts.