More convenient url functions for WMS

With this change, a more generic createFromParamsFunction url function factory is introduced, which can also be used for other url params based layer sources than WMS.