[qmlcontacts] Port from qt4 to qt5
Fix yaml and regenerate spec.
Minor review fixup: only define QGuiApplication pointer once.

It's used in both preprocessor branches, so move it back to where it was before.