Large deviations, gibbs measures and closed orbits for hyperbolic flows