BUGFIX: IP lookup wasn't working when using HTTPS

REFACTOR: the ip locator into a ip-lookup component