some refactoring
Merge branch 'master' of https://github.com/lahiruchandima/publish_event_mediator

Conflicts:
	org.wso2.carbon.mediator.publishevent.ui/4.2.0/src/main/java/org/wso2/carbon/mediator/publishevent/ui/Property.java
	org.wso2.carbon.mediator.publishevent.ui/4.2.0/src/main/java/org/wso2/carbon/mediator/publishevent/ui/PublishEventMediator.java
	org.wso2.carbon.mediator.publishevent/4.2.0/src/main/java/org/wso2/carbon/mediator/publishevent/PublishEventMediatorFactory.java