Updated total object counters and refactored search query.

[skip ci]
Cleanup.

[skip ci]
Added Chat to gatherings view.

[skip ci]
Fixed Project link.

[skip ci]
Removed priority field from tasks and projects and refactored a few other parts.

[skip ci]