cloudinit: retrieve IPv4 addresses from metadata

This uses the new MetadataService implementation to retrieve values for
$private_ipv4 and $public_ipv4 substitutions, instead of using environment
variables.