Use setReadPreference() if setSlaveOkay() is not available

setSlaveOkay() was deprecated in version 1.2.11 of the Mongo driver, and has now been removed from 1.4+, so we need to use setReadPreference() instead.

http://www.php.net/manual/en/mongo.readpreferences.php