Combinatorial configurations, quasiline arrangements, and systems of curves on surfaces