Fixes for PECL bugs 60500 and 60501

[60500](https://bugs.php.net/bug.php?id=60500): Fix get with CAS token not fetching all results

[60501](https://bugs.php.net/bug.php?id=60501): Add binary protocol support to session handler

Further details are available in the commit messages/bug reports.