Add CKEditor browsing and uploading medias feature

Move all code to SonataFormatterBundle

Add a security check to check if SonataMediaBundle is loaded