Add serve_once method to Server

This method allows the server to respond to only one request before the program continues. This is useful for applications where serving is made on demand and only one connection is expected at the time, for example when receiving OAuth callbacks.