Clean up usage of get_endpoints in app so that it's only called when needed.
Clean up usage of get_endpoints in app so that it's only called when needed.
CanonicalJS/juju-gui,jrwren/juju-gui,bac/juju-gui,bac/juju-gui,CanonicalJS/juju-gui,bac/juju-gui,jrwren/juju-gui,jrwren/juju-gui,mitechie/juju-gui,mitechie/juju-gui,jrwren/juju-gui,mitechie/juju-gui,bac/juju-gui,CanonicalJS/juju-gui,mitechie/juju-gui