Added deferred entity removal with a custom allocator. This will need tweaking later on -- but for now it properly 'works'.