added thumbnail preview for Publish/Edit form. Also simplified some of the jQuery class toggling code.
Merge pull request #1 from ridgehkr/thumbnail-preview

added thumbnail preview for Publish/Edit form