Restore ScriptRunner functionality etc.

Reverts parts of f82a7e813a3280f89cba16c60ccb340b688b468a.
Prevent frame script injection into chrome frames.
Remove double-import workaround.