Pass a nil port into Rack::Server, then ask Rack::Server what port got bound.

Does this actually work? Rack::Server looks like an awful piece of code.