Orbital Dynamics and Numerical N-body Simulations of Extrasolar Moons and Giant Planets