Refactor/fix Framework-Application relationship: Application is now created first and passed to Framework, instead of Framework creating and owning the Application. Application is now also destroyed as the last QObject, as is should in Qt application.