A Neural-Symbolic Cognitive Agent for Online Learning and Reasoning