Define iframe model scripting API with .post() function

[#62565196]
Let iframe models register own scripting API functions

[#62565196]
Set window.script to actual scripting API object instead of its copy

[#62565196]

As scripting API can be extended later (e.g. by iframe model type).