Added LoadFrameScript API, added setPref API to qmlContext