The Y-wing has what are meant to be thrust-vectoring vanes so you could always claim the ship really is vectoring it's engine thrust: this is like a built-in, self-generated atmosphere and rudder combination. The reality is of course that they are too far from the engine nozzles to be very effective and would only work under acceleration anyway - and the fact that no other ship in the SW universe has anything really similar is a good sign that they generally use something else anyway.
Three things.
1.) the Y-wings aren't quite the "aerodynamic monstrosity" they're described as. With all the plating and coverings on, they're actually more aerodynamic than many of the other fighter craft in the original trilogy. Look up the "clone war era" Y-wings online (although they were always designed to have been older craft, heavily modified).
2.) The "thrust vector" thing is really the key for making the way Star Wars craft move be considered realistic. I can't think of a single craft in the SW universe that has only ONE engine or engine nozzle. So, arguably, all of them are simply vectoring thrust to change direction. Not necessarily through some "vector vane" like the Y-wing, but through manipulation of multiple engines. A-wings, I think, have similar vector vanes, though. Or something that looks like them.
3.) Y-wings are not nimble or maneuverable. This is not open for debate. Y-wings are, as I refer to them, "lead sleds." They're heavily armored and, for their time, heavily armed, but they are slower than molasses in winter and they turn REALLY slowly.
As a separate matter, on the issue of "why not a bottle of hairspray?" the issue is....sort of related to gravity and atmosphere.
Atmosphere creates resistance. It's molecules bumping against molecules, right? It's the same reason why you can't move your hand as quickly through water as you can through the air: more resistance. But that's more in the sense of "I put something in front of you so that you can't move ahead."
Gravity, on the other hand, is a force (not THE Force). Gravity is basically the attraction of mass to mass, right? So, the reason why we all fall to earth is because the earth is way bigger than us, and exerts more force over us. On the other hand, the reason the Earth doesn't go spinning off into the void of space is because the sun is so much bigger that it's keeping the earth in orbit. Again, it's the application of force.
When you say "but you have no gravity in space", technically that's not true. Gravity exists everywhere. You don't have PLANETARY gravity exerting force on you (unless you fall into one's gravitational field sufficient that it noticeably affects you). But there's still gravity.
As long as you have an object that has mass, moving it in any direction will require the application of force. You may need LESS force to move an object with no resistance from atmosphere and no planetary gravitational force being exerted on it, but you still need force.
If your object is moving in a given direction in a straight line, and you want to stop it cold, you'd need to exert sufficient force in the opposite direction to stop it. I don't recall the equations involved, but basically, you still need sufficient force to counteract the previous force applied.