CA-137485: Updated XenModel with the new API bindings with serializable ...

And added unit tests for exception serialization.

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>