Add code of join master cluster

I will add integration tests later.