Properties of Liquid Water and Solvated Ions Based on First Principles Calculations