Add get_public_ip util function

Add `get_public_ip` utility function, which uses a web-service to
determine the public IP of the machine.

The URL used is: http://myip.dnsomatic.com