Dynamics of Small Bodies in Planetary System Formation