Add a new hostname_method=shell.

The 'shell' hostname method will run the string set in the 'hostname'
key through the default shell and use its stdout as the hostname.
Merge pull request #680 from kjkuan/shell_hostname_method

Add a new hostname_method=shell.