phantomjs support & remove obsolete code

Implements support for running the testsuite using phantomjs, which is a WebKit based browser created specially for testing and has some advantages like being completely headless.

Also, remove support for other browsers that are obsolete tools and the code is not even working and remove unnecessary complexity, leaving only Firefox and PhantomJS.