Normalize handling of server_url option

Normalize handling of the server_url config option by parsing it into
its components (host, port, etc.) in #initialize and using those
components thereafter.