Measurements of Quarkonium Production and Polarization at CMS