Add support for optionally following referrals

In some Active Directory setups, referrals are very common, which makes using this library pretty difficult. To solve this, we can tell PHP to automatically follow any referrals that are returned by a server, per the documentation at http://www.php.net/manual/en/ldap.constants.php.