Fixing dependencies

This avoids undefined this.tileManager.addMap, and re-adds the TileManager
to the mobile build profile.
Merge pull request #1002 from ahocevar/tilemanager-mobile

Fixing dependencies. r=@bartvde