Allow default gateway for metadata source (for cloudstack)

With the attached commits and configuration entries as below, this allows Cloudbase-init to work with userdata (tested for a simple powershell script) on Cloudstack based cloud providers.

Configuration entries required:
metadata_base_url = 'http://%default_gateway%/latest'
ec2_metadata_base_url = 'http://%default_gateway%/latest'