Elements of numerical relativity and relativistic hydrodynamics : from Einstein's equations to astrophysical simulations (2009)