Glass phase and other multiple liquid-to-liquid transitions resulting from two-liquid phase competition