Re-send PR 15

I have made some changes regarding some comments in PR https://github.com/esl/lhttpc/pull/15. I need to send a new PR in order to include such changes on top.