replacing @filename API for PHP5.5 with CURLFile class
adding test for login,logout,send/upload,getsnaps and markasviewed