[GEOS-6681] New REST parameter for disabling exception logging (Backport on 2.6.x)

I have prepared this pull request for backporting the fix for JIRA: https://jira.codehaus.org/browse/GEOS-6681.

Note that this pull request must be merged after the 2.6.0 is released.