Added session constructors for supporting connections over proxies