Change the episodic, brain and social creation and use

Change the episodic, brain and social creation and use for eventual
replacement with memory allocation in unit test mode.