Added chunk/world relationship code, simple state fuctions