Changed else/elseif statements to be on the same line as previous brace.
Examine REQUEST_URI first, as this seems to be the most portable.
Expect a copy of the $_SERVER variable to be passed to Toro::serve().

This allows you to pass in a fake server variable for testing.
Add a couple of type hints.