The cosmological bootstrap: spinning correlators from symmetries and factorization