Machine Psychology: Autonomous Behavior, Perceptual Categorization and Conditioning in a Brain-based Device | Synapse