Added an option to add arbitrary headers to the client requests

The headers are key/value pairs defined in the settings under the `request.headers` namespace.

Also changed test infrastructure's so it'd be possible to define the additional settings for transport clients.
Can't we just return a response instead of an exception? Or even move the whole assert logic here so we get rid of both exception and listener?