WMS: Add options for limiting map size and number of layers

Adds the following options to the WMS config:

* LayerLimit
* MaxWidth
* MaxHeight

Especially the two latter ones are important for limiting the amount of memory used by a single GetMap request.