Remove nil options from uri_or_options and set some reasonable defaults for :timout and :tcp_keepalive