Add an endpoint for listing and updating task sessions. #4