Classical dynamics, arrow of time, and genesis of the Heisenberg commutation relations