Add support for endpoints

This only adds list support for endpoints, the upstream API for getting
a single endpoint is really clumsy right now.  Going to see if we can
get them to rework it.

Change-Id: I49817b206de1a0abb8c016098cace4476b071a12
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>