Rename setupuploadRoute to setupUploadRoute
src(core.js): rearrange code