Long-term orbital evolution of planetary systems: stability, migration, and other fates.