Fix to specify the endpoint url directly

Instead of specifying a protocol and address and
using those to compose the endpoint url which is
deprecated, use the url directly for public,
admin and internal endpoints. This should
remove the deprecate warnings in icehouse.

Fixes bug #1295697

Change-Id: I94a1ceaba991f59242aac47ed9eee8c8970e3714
Merge "Fix to specify the endpoint url directly"