Adding listener support to knowledge repository. Plus refactoring of notifications in ReplicatedHashMap