Update replication plugin
Update replication plugin

- Remove unnecessary override of getType in event classes
- Update from ChangeHooks to EventDispatcher
- Register replication events as event types

Change-Id: I1149347cebd3feb55f3bfd095e71f47c99884cae

anminhsu/gerrit,jackminicloud/test,supriyantomaftuh/gerrit,WANdisco/gerrit,qtproject/qtqa-gerrit,pkdevbox/gerrit,Distrotech/gerrit,gcoders/gerrit,gerrit-review/gerrit,hdost/gerrit,jackminicloud/test,netroby/gerrit,qtproject/qtqa-gerrit,pkdevbox/gerrit,MerritCR/merrit,gcoders/gerrit,dwhipstock/gerrit,supriyantomaftuh/gerrit,qtproject/qtqa-gerrit,pkdevbox/gerrit,thinkernel/gerrit,WANdisco/gerrit,renchaorevee/gerrit,MerritCR/merrit,netroby/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,hdost/gerrit,anminhsu/gerrit,joshuawilson/merrit,quyixia/gerrit,qtproject/qtqa-gerrit,supriyantomaftuh/gerrit,dwhipstock/gerrit,gcoders/gerrit,WANdisco/gerrit,quyixia/gerrit,hdost/gerrit,anminhsu/gerrit,renchaorevee/gerrit,dwhipstock/gerrit,Seinlin/gerrit,thinkernel/gerrit,quyixia/gerrit,TonyChai24/test,supriyantomaftuh/gerrit,hdost/gerrit,qtproject/qtqa-gerrit,Distrotech/gerrit,joshuawilson/merrit,anminhsu/gerrit,jackminicloud/test,thesamet/gerrit,TonyChai24/test,netroby/gerrit,thesamet/gerrit,quyixia/gerrit,pkdevbox/gerrit,thinkernel/gerrit,quyixia/gerrit,qtproject/qtqa-gerrit,thesamet/gerrit,TonyChai24/test,gcoders/gerrit,anminhsu/gerrit,thesamet/gerrit,quyixia/gerrit,GerritCodeReview/gerrit,hdost/gerrit,hdost/gerrit,joshuawilson/merrit,gcoders/gerrit,Seinlin/gerrit,WANdisco/gerrit,renchaorevee/gerrit,gcoders/gerrit,thesamet/gerrit,TonyChai24/test,gerrit-review/gerrit,MerritCR/merrit,gerrit-review/gerrit,TonyChai24/test,thinkernel/gerrit,Seinlin/gerrit,TonyChai24/test,GerritCodeReview/gerrit,thinkernel/gerrit,GerritCodeReview/gerrit,joshuawilson/merrit,joshuawilson/merrit,Distrotech/gerrit,quyixia/gerrit,MerritCR/merrit,GerritCodeReview/gerrit,renchaorevee/gerrit,supriyantomaftuh/gerrit,joshuawilson/merrit,dwhipstock/gerrit,renchaorevee/gerrit,pkdevbox/gerrit,dwhipstock/gerrit,WANdisco/gerrit,Distrotech/gerrit,dwhipstock/gerrit,Distrotech/gerrit,anminhsu/gerrit,MerritCR/merrit,supriyantomaftuh/gerrit,supriyantomaftuh/gerrit,netroby/gerrit,anminhsu/gerrit,gerrit-review/gerrit,thesamet/gerrit,TonyChai24/test,MerritCR/merrit,joshuawilson/merrit,Seinlin/gerrit,renchaorevee/gerrit,Seinlin/gerrit,thinkernel/gerrit,Distrotech/gerrit,Seinlin/gerrit,MerritCR/merrit,renchaorevee/gerrit,jackminicloud/test,dwhipstock/gerrit,pkdevbox/gerrit,Seinlin/gerrit,gerrit-review/gerrit,GerritCodeReview/gerrit,netroby/gerrit,gerrit-review/gerrit,jackminicloud/test,thinkernel/gerrit,netroby/gerrit,netroby/gerrit,pkdevbox/gerrit,jackminicloud/test,hdost/gerrit,joshuawilson/merrit,GerritCodeReview/gerrit,Distrotech/gerrit,thesamet/gerrit,gcoders/gerrit,MerritCR/merrit,WANdisco/gerrit,jackminicloud/test,gerrit-review/gerrit,WANdisco/gerrit,qtproject/qtqa-gerrit