Update getUserAgentForUriAndTab handler

Some adjustments for getUserAgentForUriAndTab handler to better support custom user agent string.

This PR contains also an initial Qt project file for helping importing the project to QtCreator. That should be extended as per need.