Fix render format detection.
Using System::stdout and System::stderr when temporary file created.
Add WebPage#render unit tests.