The Autonomous Brain: A Neural Theory of Attention and Learning