Hamilton's gradient estimates and a monotonicity formula for heat flows on metric measure spaces. (January 2016)