Improved Tiler drawstate interface.
Make it possible to bind attribute buffers when they are not in active use.
Added a mapview uniform to extract the ambient lightsource index.
Make mipmap algorithms modular.