Create MXRestClient from a MXCredentials object
Fixed tests with strange alias created by the home server (#mxPublic:localhost:8480 instead of the expected #mxPublic:localhost:8080)