Iframeandmemoryleaks

I merged all of my changes into one branch.

This fixes memory leak issues and issues with empty IFRAMES