Search did not work any more with python controller / 2 new options

Hej,

1. Bugfix
It seems that since https://github.com/qgis/QGIS-Web-Client/commit/1461dcdf2749259ec6c0c4500a87455e423489f1
the search don't work any more when using the python-controller. As I don't know if this bugfix works with the php-controller (most likely not), this bugfix could be be improved.

2. Option "show Metadata in Legend" in GlobalOptions.js
When setting showMetaDataInLegend = false, the Metadata is not being displayed in the legend any more.

3. Option "grayLayerNameWhenOutsideScale"
When setting grayLayerNameWhenOutsideScale=true, the layers-names in the TOC are being displayed in gray, when the layer is not shown because of scale limitations.


Cheers,
Tobias