A Multi-Phase School Choice Mechanism: Theory and Practice