Executive Attention, Action Selection And Attention-Based Learning In Neurally Controlled Autonomous Agents