Allow use with normal http server and add tests
Merge pull request #12 from conradz/http

Allow use with normal http server