remove global QApplication *application

.. it is available from the macro qApp anyway.
merge upstream into master