WeWork Takes Key Step Toward I.P.O., Citing Heady Growth and Huge Losses