Moved upload to api. Changed upload js to jquery.fileupload.js. Added some stuff to the save function for Photos