Revert "Ticket 4059 -  Changes merging of local and global events to ensure global evens with the same priority as local events are fired first"

This reverts commit 917078b62c815cd9419197fee351ba206a14285b.
Revert "Revert "Ticket 4059 -  Changes merging of local and global events to ensure global evens with the same priority as local events are fired first""

This reverts commit 90f574f919eae51a155b682a3aa604f06d6cafe4.
Revert "Revert "Revert "Ticket 4059 -  Changes merging of local and global events to ensure global evens with the same priority as local events are fired first"""

This reverts commit 45193262f9e58681cd5f6375525a251604a0827f.
Revert "Revert "Revert "Revert "Ticket 4059 -  Changes merging of local and global events to ensure global evens with the same priority as local events are fired first""""

This reverts commit f20ff615c15a663fe72ce9c0e0852bac5f44698c.
Ticket 4059 reverting unnecessary changes
Revert "adding in gitignore"

This reverts commit a7d61a597d54ae882b2e2fb22fd69c14b15ca617.
Ticket 4059
-  removed database.php