Make the library compatible with PHP 5.4
Enable Travis and test with PHP 5.4 and 5.5