add server_config/mime.js & tmp_dir.js, upgrade npm-tools/sumeru to add those two files if they are not there, fix serveral issues found by CR