Feature #359 hostname spoofing for unattended inst

This patch extends the support for 'spoofing' unattended installs to
allow passing the hostname instead of the IP address.

Use hostname to search for templates instead of IP