Adds RESTful API functionality to Symfony2