Polymers as reagents and catalysts