Offline tiles update.

Changed functional layer to a canvas layer to make drawing offline
tiles easier.

Tiles are now stored locally as dataURLs.