now including haproxy template, automatic generation and fix for hostmanager

now including haproxy template, automatic generation and fix for hostmanager