Reintegrated the space hashes. Embodied entity and LED entity are now correctly inserted in the corresponding space hashes. Debugging messages are present to check their content during an experiment.

Solved memory leaked by missing destruction of a few factories.