Refactoring the hypervisor model

Updated the serialization and deserialization structure.

Change-Id: Ia8f776699021f575fc374dfbd7a955a83ad95160
Merge "Refactoring the hypervisor model"