Connection Formulations of Cosmology and Unimodular Gravity