Modify Request::getClientIp() to use IpUtils::checkIp()

Adds the ability to use CIDR notation in the trusted proxy list
Allow setting trusted_proxies using CIDR notation
[HttpFoundation] added some unit tests for ranges of trusted IP addresses
[HttpFoundation] refactored code to avoid code duplication