Guess locale based off IP if present

Created by: Torxed

If a gateway is detected, use a geoip library to determain to the best of our ability where the user is coming from. This in order to determain the keyboard layout and suggest mirrors etc.