The history of the synagogue in America, a new book shows, is one of rifts, splits, factions, and the ever-evolving tension between tradition and modernity