Possibly futile "micro-optimizations"

...to hopefully speed up processing search results.
* Factored NCSfacetedSearch->constructQueryURI into it's own helper class
* Little optimizations in constructQueryURI (and other functions)
* and some minor code cleanup
More code clean-up.