Retina support for TileLayer.WMS

Hello

I added the retina support to TileLayer.WMS and I tried to factorize a bit the code.

It should also be ok with these layers for example : https://github.com/shramov/leaflet-plugins/tree/master/layer/tile