Add thread dump REST command.