refactor everything
add project count to each result type
fix minor things
replace old community stats with configurable queries
add initial code