Metadata url config parameter

Added support for optional metada location url parameter in case the url is different thant entityID.