Make default_gateway param work with cfg module

cfg module automatically substitutes ${variables}, so we're doing a simple string replace now.
Config file for cloudstack should therefore contain:
metadata_base_url = 'http://%default_gateway%/'

While this is a little ugly, it won't conflict as %default_gateway% is not valid in DNS or in the URL path.