Understanding the Role of Circulating and Tissue-Resident T cells in Cancer and Autoimmunity