begin refacto, add entity class manager etc
refacto ending
Merge pull request #1 from RonanDrouglazet/refacto

Refacto