bunch of fixes and improvements
fixed CURLOPT_POSTFIELDS to correspond the test
fixed tests
improved architecture
bumped php version in .travis.yml