Cache result of checking whether axis should be inverted for wms layers. Greatly improves speed of connecting to wms layers when a wms server has many available layers.
Merge pull request #1222 from nyalldawson/wms_layer_speed

Cache result of checking whether axis should be inverted for wms layers