adds server upload logic, adds npm modules