Small body orbital dynamics in the Solar System : celestial mechanics and impacts