Make library compatible to refactored Facebook library

I made some changes to the code to make it compatible with the new version of the Facebook WebDriver library. The current version of php-selenese only seems to work with the old version which doesn't really exist anymore.