refactored, added MasterProtocol class for masterserver to increase master reusability
refactored, moved protocol logic of MasterServer to MasterProtocol