Adding support for reading OS data. Initial support for XS metadata.

Signed-off-by: Rob Dobson <rob.dobson@citrix.com>