Add ability to configure endpoint_type in openrc

* Add the ability to configure the endpoint type used by the client
* Refactor to use a template for the generation of openrc

Change-Id: Id4b214373676488930be2066ad96ab3261ded909
Merge "Add ability to configure endpoint_type in openrc"