Use config.maxFeatures parameter to restrict number of responses in OpenLs and getFeatures requests plus beautify code