Make endpoint type configurable

Allow to specify the endpoint type to use for each service. Not everybody will
want to use publicURL, so let's make this configurable.

Closes-Bug: #1178083
Change-Id: Idb414aef7510178efef59cb48149ff1d86f11cb1
Merge "Make endpoint type configurable"