Added Travis CI.
Fixes for PHP 5.4.29 and 5.5.13 BC break.