'states' variable should be called 'user_states'
cleaned up 'GroupingView' a bit — might actually work now (not fully tested)
Merge branch 'master' of github.com:encorelab/CommonKnowledge