Minor updates to core. Refactored the Phantomjs Class. Moved Casperjs Class into init.pp