Add y_setup_browser_emulation_from_parameters()

y_setup_browser_emulation() will now simply call the above with the old builtins used as defaults.
Also this does quite a bit more checking on the parameters themselves.
(It's still not entirely idiot-proof, though.)