Quadrilaterals, billiards and moduli spaces