Symfony2.3+ compatibility

Refactored the bundle to add Symfony2.3+ compatibility, fixed namshi/jose dependency version.