Restrict action and hide links

Restrict actions in TicketsController based on permissions and hide
links
Add permission screen for admins

Generate a new PermissionsController for handling user permissions.
Add "Sign out" link, finally.
Commented out pending tests.