Accomodate PHP 5.5 deprecation of @filename API

Adjusts postData variable after checking for curl_file_create function
Remove extra comma
Significant improvements fixed token extracting mechanism
* improved architecture (especially request method) added
* caching authorization
* my version of string uploading is not working yet, but you still can use jakajancar's one