Merged requested to merge performance/re_setup_analysis into master
- user groups are now accessible in
cached_groupsof user. User model is changed: new one is available in
- History and PendingModeration are now optimized: we cache the number of versions and if there is something pending moderation in the models. Also, history and pending moderation data must be queried separately.