updating the doctrine orm version to the ~2.4 stable

- It fixes the template rendering of sonata media bundle, for more
details the issue is the 495.
reorganizing custom bundles in the composer.json file
updating the composer.lock file after fixing the issue between sonata media bundle and doctrine orm
adding a new migration for sonata media bundle upgraded