Add deliver_file() method to base_controller class.