Support relative resources urls, applet and object tags, wip for #1411