discoveryHandler = function() {
        if (chrome.runtime.lastError) {
          console.log('Failed to ' + (self.discovering_ ? 'stop' : 'start') + ' discovery ' +
                      chrome.runtime.lastError.message);
        }
      }
Sets up the UI for the given service by retrieving the initial values of
all relevant characteristics and performing other necessary set up.