Simplify Symfony2 RESTful API building