combine media uploader into core script
remove kruft, do types, style up loaders, style fields, fix notices