Save active tab before we stop engine

I guess it makes sense to introduce a some kind of GlobalSignalDispatcher and to move emitting beforeShutdown and dumpMemoryInfo to this global object from DeclarativeWebUtils, but I'm not sure these two signals justify the split.
Should be under private slots.