Added count method to combined public query
Added join method to combined publication query, added tests for mtm relation and joinedload
Megred pull request from motor, but changed join handling: we have to be consistent in postponing all criterions