CS-5033: Adds option to disable protocol for generating urls
CS-5033: Adds systempreference for protocol in Smarty generated urls
CS-5033: Changes service name and changes smarty parameter to be consistent with system preference
CS-5033: Adds SmartyUseProtocol system preference to upgrade procedure
fix countByUser function queries
CS-5033: Adds methods in template engine classes for protocol relative urls
improve users listing
remove distinct
add temporary users_points updating
remove ordering by points on the fly
CS-5033: Makes comment more consistent with preference name
CS-5033: Removed comment on advice from Paweł

https://github.com/sourcefabric/Newscoop/pull/714#discussion_r13696411
CS-5033: Refrasing of system preferences text
Merge pull request #2 from m038/CS-5432

Cs 5432
authors fixes
Merge pull request #716 from ahilles107/fix_performance

fix countByUser function queries
Merge branch 'master' of https://github.com/sourcefabric/Newscoop into sql-optimize
merge master
merge fix
apply most important cachings and clearing in respective actions