Helper functions now take an fd rather than a connection_t

Signed-off-by: John Else <john.else@citrix.com>
Create Connection module, and add version field to Connection.t

Signed-off-by: John Else <john.else@citrix.com>
Add connect function and associated helper functions

Signed-off-by: John Else <john.else@citrix.com>