Pass in config object to generators

Also emit a default hostgroup for all hosts

Change-Id: Ifaf2643b8fc03a8e8e95b3ed7eba31e4540fe954