First crack at (untested) unit tests. Inserting untested Firefox support into library_sdl.
The tests currently fail, but I'm making progress with them.