Moduli of curves: new compactifications and flips