Added alert hub integration, logging of sent alerts and permissions