Replace webui use of erchef url with api endpoint

As this is the proper place for the webui to look; in looking directly
at erchef, it may or may not always work, depending on how erchef and
components are configured