updated upload command and caching of files

(implement basic or partial  command architecture for uploading ) Add
sample code of how to use upload command and how to parse directory
structure that this lib maintain