mode name used to configure host, fixes #39
Merge branch 'config_debug'

Merge in hostname injection fix with mode set
Update for 0.9.1 patch