Refactor repository notification code
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-stratos