add endpoint to list all valid endpoints

The /api endpoint now returns a json list of all the endpoints on the
server.

Signed-off-by: Tim Henigan <tim.henigan@gmail.com>