Principles of Astrophysical Fluid Dynamics