Changed to use the GeoIP country database.
Use the X-Forwarded-For header, if available
simplify lookup for countries
refactor ip retrieval, use the first ip in XFF header
fix compile errors
fix varnish compile error
terminate ip buffer after copy
use different header for country geoip
do not fail varnish, just log an error if geoip db is missing
fix mistype in function name
Updates
Merge pull request #1 from davewilliamson/develop

Develop