added possibility to upload files through API
added file upload capability to CLI
small fixes; successfully tested file upload
Merge pull request #1 from nohum/dev_file_upload

File upload now works for current API (v2)