Upload events + upload_server written in coffee