The explanation for why it is relevant to SO wasn't relevant to your question. Editing it out was the correct move. Nothing about this was dishonest or abusive, and it was entirely transparent as edits are all visible on non-deleted questions.
A person who votes to close a question should never be able to also edit that question.
I disagree, closure is intended to be a temporary state; editing a question that might be able to be further edited by the OP to make it on topic should be encouraged. Editing questions that can't be edited to be on topic should not be encouraged.
A person who asks a question should never be blocked from editing their own question, especially not by anyone voting to close it, and not by anyone who is editing it to be something other than the question the OP asked.
Agreed, and this is already the way things work. (Unless an elected moderator steps in to stop a rollback war)
Anyone voting to close a question should be required to look through the history of edits. If the current version of the question deserves to be closed, perhaps a previous version does not. If any version is suitable, then the solution is to revert to that version, and not to close the question.
There is nothing stopping someone from looking at the edit history, however we close questions based on their current state, not the state they were in in the past. If an edit occurs that you think makes the post off topic or worse, you as the OP can roll it back.
If there is another site that is determined to be more appropriate, there should be a simple way provided to repost or migrate the question to that other site, and historical questions should either be also migrated or should have a banner displayed like "this question would belong on XYZ site, but XYZ site didn't exist when it was asked" (or whatever the reason actually is should be displayed).
In a perfect world I'd agree, however we are not experts on these other sites and can't reliably determine whether or not an off topic question on this site is on topic elsewhere. The poster should instead go to the other community and read their rules/guidelines and make that determination themselves.
Users who close questions should be required to actually know and understand the guidelines for what does and doesn't belong, and those who repeatedly vote to close questions which should not be closed should lose their ability to vote to close questions.
Question closure is a privilege that is unlocked at 3000 reputation. It is expected that users at this point should know what closure is for, however, in cases where the privilege is abused, anyone who witnesses such abuse can flag for a moderator.