Replace our doctrine with doctrine bundle

What's here:
* Symfony 2.2 (instead 2.1)
* doctrine managed by Doctrine Bundle (instead our custom implementation)
* new version of JMS/SerializerBundle
* Some fixes for smarty.

All REST API tests are passed.