Add a WMTS capabilities cache
fix #400
Don't change the original bounds
More global currentIndex
fix #399 (WMTS layer order issue)
Merge pull request #401 from camptocamp/wmts-dupplicate-getcapabilities

Add a WMTS capabilities cache