Changed entity manager to using long types (allow more entities).
Added dispose functionatilty everywhere so we can do a simple
engine.dispose() (or world.dispose()) and it will propagate through
everwhere.