Lot's of updates to fix #6, #7, #9 and #10

I did a bunch of updates I stared with merging pull requests #7 and #9.
This also fixes #10 and #6

Here is a list of my updates
* Update to latest version of resty version
* Removed copy of restry from repository
* Removed composer.lock because it should not be included
  * https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
  * https://getcomposer.org/doc/02-libraries.md#lock-file
* Removed source and pear support
* Used php-cs-fixer, fixes PSR-0, PSR-1, PSR-2
* Fixed docblocks
* Fixed some tests
  * Some of the tests return different responses but we should not test the API we should mock the results.