added continue option to response for post return processes

I've added a third option to the response function that flushes the output, and continues running the script rather than exiting. This allows you to respond quickly to rest requests, and then perform slow processes such as sending emails that can happen afterwards.