Adapt to QtWebKit API.

Change-Id: Iab5081b11e0ae364c24665a7ca782839e076c859
Import adapted messaging unit tests from QtWebKit.

Change-Id: I6ffbc1f77525d4ed152b63fc10cc8f3b8a2fc20c