Staying calm is key to success. Also, I don't know if you can already perform EVAs in space (you need to have your astronaut complex at level 2 for that), but when you're out of fuel/electricity, you can always get a kerbal out and have him, literally, push the vessel using the monopropellant of his backpack. You probably could have turned your shuttle like that. It's also very useful when your solar panels are not exposed to sun light and you're out of electricity. And always grand fun. Cheers