adds a cache to import.js
factorize import code
implements 'onCompleted' signal
refactore basePath handler in QMLEngine