Implemented inter-masternode routing and endpoint registering and unregistering at master nodes