Debug IP address parameter

Added a debug IP Address to be used when working locally for example.
Also handled a PHP warning in case nothing was returned by getFreegeoip() function
Pretty busy these days but I'll do with pleasure as soon as I have 5 minutes.