Improve error message for connection failure

Ensure that the final message, the one that stays in the echo area,
contains information about where we tried to connect to.  Also
accumulate error messages for all addresses we tried.
Don't report nil resource when connection lost

If we didn't get a resource before the connection was lost, don't put
"/nil" in the error message, e.g. "foo@example.com/nil: connection lost".
Simplify "OS" version in jabber:iq:version

No need to include the entire result of emacs-version; something like
Emacs 24.3 (darwin) is enough.