Changes specific to bolt-relay, abstracted the mux logic in the proxy for usage in bolt-client of the bolt-relay, need to test the code yet