Initial PhantomJS support, various style fixes