Use the public hostname for web UI

This fixes an annoying problem where the links to the application detail UI on the master's UI don't work.  The added lines were copied from a different spark-ec2 branch (the v2 branch) where this is setup correctly.