metadata: Split the metadata monolith into ec2 and openstack

Added more testing.