Trending Repositories fix
Big refactoring and better Pull request support