promise support + basic sample

fixes in this version 
1. all package api's are exposed under v2 (no need to require config separately) 
2. api support both callback and promise coding style 
3. basic (cli) sample with different upload and transform scenarios