Added _lm_connection_get_server that returns the server string.
The function uses the host part of the JID used, if it is not set the function
will return a copy of the connect host.
Also updated to use this internally in LmConnection as the same code was
duplicated in a couple of places.