Refactoring of code that prevents popup closing

This uses the fact that aloha won't deacivate the editor if it has
.aloha in its hierarchy. Of course marking something with class=aloha
brings about styling baggage, so that had to be reset.