Fixed cleanup accumulating invalid entities.

The cleanup library would continue to track entities it had already
removed. It now empties an entity list after using it for cleanup.
Reverting for correct line-endings.
Fixed cleanup accumulating invalid entities.

The cleanup library would continue to track entities it had already removed. It now empties an entity list after using it for cleanup.
Trying to fix line-endings. Again.
Trying to fix line-endings. Again. Again.
Merge pull request #136 from Ghor/master

Fixed cleanup accumulating invalid entities.