Compatibility to Symfony 2.4

Also update travis to test against 2.2 and 2.4 too