The Terahertz Intensity Mapper (TIM): a Next-Generation Experiment for Galaxy Evolution Studies