Fix http/ws API broken in previous commits.
Fix http/ws unit tests.
Merge pull request #8 from cesanta/fix_http_api

Fix http/ws API broken in previous commits.