Fix some generic issues

* Id should be incremented independently on multiple thread application. 
* Alllow to set custom headers (required for some servers like bitcoind).
* Set missed header `Content-Length`
* Correct documentation