Client and server side scripts for light cloud storage system