RIGHTS AGREEMENT between WEBMETHODS, INC. and AMERICAN STOCK TRANSFER & TRUST COMPANY, as Rights Agent Dated as of October 18, 2001