Theory of fluidity of liquids, glass transition, and melting