Online Market Equilibrium with Application to Fair Division