Fix dynamic config generation

This fixes #60. The `config_generator` looks kind of messy. I am open for suggestions to improve this. But for now, this generates syntactically correct haproxy.cnf.