Statistical Mechanics of Liquids and Fluids in Curved Space