#529 introduce afterFilter to count permissions, annotations
 #529 optimize sql query in findObjects

* remove autojoin with contents table
* some count filter are excuted after find results take advantage of afterFilter
* improve loading of multimedia index
Merge branch '3-corylus'

Conflicts:
	bedita-app/app_controller.php