From Salience to Memory - How the Brain Learns to See, Ignore, and Remember the World