Fix autoloading via composer. Construct Doctrine using Symfony container.
Merge pull request #2586 from totten/doctrine-container

Fix autoloading via composer. Construct Doctrine using Symfony container.