feat(etc-hosts) add support for manage_etc_hosts: localhost

This feature is based on https://github.com/number5/cloud-init/blob/master/doc/examples/cloud-config.txt#L447:L482