Added possibility to override the default WebRequestFactory.