Mobile Ions in Organohalide Perovskites: Interplay of Electronic Structure and Dynamics