Amend HBASE-11394 Replication can have data loss if peer id contains hyphen

Fix compilation error in TestReplicationTrackerZKImpl
HBASE-12126 Region server coprocessor endpoint (Virag Kothari)