A loop-based neural architecture for structured behavior encoding and decoding. (February 2018)