Added proper $domain propagation from server to client.

Most users won't notice or use this feature. It will be useful for
complicated setups where the $domain comes from a single variable on the
ipa server.