Add support for stream context options with connectors

It does exactly what it says on the tin.