Add ID column to restapi.secret file

Rather than use a number based on which entry, assign an ID to
each endpoint. Use this in the workdirpath instead. This gives
us stable directory names even if entries are added or removed
from the restapi.secret file