CLIN: A Continually Learning Language Agent for Rapid Task Adaptation and Generalization