@Phil,

Great work. If you have an up to date version can you post it? Or is the one above the most up to date? I will try and have a look over the weekend.

What are the remaining issues?

I think if it does not play nice with Image handler then that is a major stumbling block. So will have a look at that.
The the javascript escaping?

And what else.