Based on the novel by E.L. Doctorow, “Ragtime” follows three communities colliding in turn-of-the-20th-century New York.