Can you get a JPATH_MEDIA?
Right now the media files (js, css, images etc) are hardcoded to root/media.
If you can make an alias in defines.php
define('JPATH_MEDIA', JPATH_BASE . '/media');
Then we can set the folder in whatever name we want.
I can help refactoring the files that have hardcoded the /media/whatever
for what? What are you trying to achieve by this? Being able to change this for the sake of being able to change this is stupid.