Development of the detector control system for the ATLAS Level-1 trigger and measurement of the single top production cross section