Well written.
The one thing that immediately pissed me off was you doing something awesome, then having management attack you for reason X, where X attacks everything but the results. The reason never really matters, the real reason is that you threatened them in some manner and they need to justify their job.
Honestly, I would have just quit at that point. You're a saint for staying any longer.
This sounds like an absolutely terrible company to work for.