Improve debug dumps

Add qdebug output operator for declarativewebpage.

Cherry-picked from new-browser-ui.
The operator is still a function so the curly bracket should probably go to a new line