Improvements

What I've done so far :
- added a new adapter (StreamHttpAdapter)
- fixed the way curl headers were set
- reduced the code dupplication
- added custom exception