test server updates

- send 'Connection: close' if closing connection
- process any remaining buffer after sending response
persistent option