THERAVANCE, INC. and American Stock Transfer & Trust Company, as Rights Agent RIGHTS AGREEMENT Dated as of October 8, 2004