add event emitting to collectivity.js and refactor google-news-search and twitter-search