Refactor commands to use iife

Hey, I was just doing a quick readthrough of wysihtml and found that many of the commands followed an iife pattern and many did not. I did a quick run through and wrapped the remaining commands in an iife.

Hopefully, this will lend a little bit more consistency and maybe make it easier to introduce some local organization to the commands... By the way, the project looks great.