Seems very interesting, but I would suggest against trying to do too much. A simpler set of events...
Okay, I managed to find my code and localisation. I want to re-do some of it and take into account some of your comments for the first sequence of events; basically, the Westphalia Treatise has a small chance of firing at any point, but becomes increasingly likely with lower MA, and the initial event will cause a small drop in MA; the Emperor is able to then either ignore it, with a small chance of the ideas being left ignored and a higher chance of heresy beginning to spread, or holding the council, which can then have its own effects from there; either through high stats they can take apart the monks arguments, with the MA hit being removed, they can mitigate the damage, or things will get much, much worse MA-wise.
From there, I'd add in various follow-on events with a random chance; Charismatic and Antinomian revivals, for example, and I'd like to add in events for Americanist, Revelationist and Mormon preachers converting provinces and nobles, similar to the Atomicist revivals.
I do think some changes would be good; I'd like to see the church gain the powers of excommunication, for example, if the Emperor restores the Convention, but its your choice.