Add getTileLoadFunction and setTileLoadFunction in ol.source.TileImage
Add cache example