Use end to send the response and end it

I couldn't find exactly when the change occurred but some things have changed with the ServerResponse so you now need to both write a response and end it (or do it at the same time with the end() method). The send method doesn't exist anymore.