Cosmology in General Massive Gravity Theories