Added file.send API.
Changed plugins and job middlewares to use file module.