Fixed world.register
Removed crap
Added state.d to engine package