Import code for rewriting QML files.

This comes from Qt Creator and is needed for API functionality such
as adding files to a project.

Change-Id: Ia5ecef1d5a5d937cf3fbf27448abbce051e977de
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
fix deprecation warnings in GCC cpp module

Use FileTagger.patterns instead of FileTagger.pattern.

Change-Id: Ib02d9ef029588dc20337459f0aa514b5dfc6dd90
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>