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.
Please move this to test_common.pri.