fix a few small issue required to make renderjs load over XWiki

When creating an iframed gadget, set the width and height to those of the containing element.
Match Content-Type more liberally.
Temporary hack to make AMD require(['renderjs']) work.