Grid-based Methods in Relativistic Hydrodynamics and Magnetohydrodynamics