[connection] Adding an options parameter to the Connection constructor to allow for configuration

- Also, adding a first configuration option which will send custom HTTP headers