Add support for connecting with a session cookie

This PR was submitted to rlane/rbvmomi. I need it for the project that I'm working on.