server: add endpoints wrapper class to return metadata
Right now this is only used to retrieve timings (fix T1945).