The eurozone and refugee crises have common features that make them tricky to resolve. Both involve disputes about sharing costs, complicated by a clash of values, at the center of which lies a newly dominant Germany.