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

We shouldn't be doing any configuration for HA brokers, for OSE we are leaving that as an external implementation detail.