Orbit dynamics, stability and chaos in planetary systems