In "A Taste of Things to Come," a breezy musical at York Theater Company, four friends navigate the 1950s, the 1960s and the inevitability of change.