Added broadcasting of PermissionAccepted / PermissionDenied events when changing permission based routes. Also added some tests