Create a 'Metadata' module, to encapsulate the related structures

Signed-off-by: David Scott <dave.scott@eu.citrix.com>