Bugfixes and feature addition

Fixed several logic bugs that caused incorrect application of configured
values.

Added support for HTTP Parameter Pollution.