Dust traps as planetary birthsites: basics and vortex formation