Changes to support latest rust-layers

Now tiles are stored in TileGrid and layer methods are simple instance
methods.