[DO NOT MERGE] Initial commit of refactor. Still contains old code.

The broker_virtual_hostname is the fqdn you can use for creating the DNS record for multiple brokers.