Interfaces level and chunk data in preparation for multiplayer

Some neccessary changes to allow custom implementations of level and chunk handling