add haproxy confif template. add Factory to create haproxy config file