Fix some E_NOTICES
BC
Fix class references.
Integrate DoctrineBundle
Add install requirement