Major refactor due to SensioLab's report

-Doctrine scheme fixes
-Removed DoctrineMigrationsBundle
-Composer.json version changes
-Restricted execution rights
-Removed files and unused "use" statements