Created basic queries API endpoint & disabled experimental queries API endpoints
Created API query model
Created queries representer
Created unstar action for queries
Template for tests
Added 'is_starred' property to the query
Added some tests and handled permissions for #star and #unstar methods
Quick & dirty fix for queries starring and unstarring permissions
Refactor API authorize method
Extract authenticate method from API authorize method
Refactoring of API authorize method
Refactored exception handling
Allowed for admin to star / unstar any query
Simplified #star endpoint
Merge pull request #1471 from opf/feature/api_queries_stars

Feature/api queries stars