extracts worker.perform so call can be enhanced

- defines execute_job as an API hook
Merge pull request #1938 from jejacks0n/extracted_perform

extracts worker.perform so call can be enhanced