Convert mapTiles into a folder module

This should make it possible to more easily refactor its code
by moving some functionality to separate modules.