[front-end] add APIUser.prototype.getScopeByInstanceName function
[front-end] widgetScope is injected into WidgetModalSettingsController
[front-end] add blank line; remove other blank lines; add comment about basicProperties