extracted a class from the script
first approach to the file splitting
Changed upload.coffee so now there is a helper method to upload chunks
The chunked upload works