Statistical Mechanics of Non-Markovian Exclusion Processes