Add endpoint handling to Token/Endpoint auth

This auth plugin was initially created before get_endpoint was
available. Implement the get_endpoint method so that we can use the
plugin with relative URLs.

Closes-Bug: #1323926
Change-Id: Ic868f509e708ad29faf86ec5ceeab2a9c98a24fc
Merge "Add endpoint handling to Token/Endpoint auth"