update codemirror code, cleanup generated photos, improve and fix bin, auto generate minified css and js files, fix media renaming in media edition