Refactored old EntitySystem class to be self contained in it's own DLL