Sample Symfony2 application with a heavy JS client, REST API, and OAuth2 Server