add links to query and wp_index

No link is actually set for now but only whether the user is allowed the action
Introduced an authrorisation service and wired it up to some of the query actions.
Cleaned up and added permissions to share modal.
adds links for permitted actions
refactors and adds create link
Wired up options dropdown to actually prevent unauthorised query actions.
Made some tweaks to the save(as) auth
Tests and fixes for query options authorisation.
Disabling new work packages button on toolbar if user is unauthorised.
new work packages disabled until proven otherwise.
Merge pull request #1499 from opf/fix/permissions_for_work_package_index

Fix/permissions for work package index