Issue#110 : specify endpoint interface configuration

add endpoint type configuration:
if specified, services use the given url : adminURL, internalURL or publicURL
if not specified, default is publicURL
Moved to the config file, and I added an error message in case the endpoint_type isn't correct.