Text this: On Fast and Stable Implementation of Clenshaw-Curtis and Fejér-Type Quadrature Rules