Updated authorizations and notifications

Added authorizations by role for all controllers/views. Added
notifications by email when a ticket is edited or created. Added
histories for changes to existing tickets.