Added directoryApiUrl config variable, to allow Directory's API URL customization