refactored javascript code for show pages
refactored javascript for index pages with charts
added scope to contribution model to rank stuff
added search function for topics,questions,contributions