comments, code cleanup and minor declaration fixes

during a global code review
httpd: performances enhancement and comments/code cleanup

performances enhancement applies to regexp usage
ParamSet: minor declaration fixes