move rack logic to lib/rack/handler/miniserver.rb