Improve building of the Qml/JS scope chain.
* For JS files: Add each Qml component that sources the file in a Script tag to the scope chain. * For Qml components: Add each component that instantiates the component to the scope chain. * Generate the full list of documents required for completion in a given file. Previously, files that included the file were missing.