Suggested fixes for *8183*

I added a range of fixes to the TinyMCE JBImages integration. See [Bugzilla ticket](http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8183) for details.