Computations Underlying Learning and Behavior in Neuronal Networks and Dendritic Compartments