Patch mica_query.pages.inc to show all queries if user is admin

Also refactor query_access_rights a little bit.
Merge branch 'features/query_access' into feature/data_access_form_improvements