A Manhattan rooftop machine is turning air, water and electricity into gasoline, reviving a bold fuel dream while exposing the efficiency and cost hurdles that could decide its future.