Change name of main functon to fcgi_loop.
Added thread termination check.
Added dub.json
Switched README to use markdown.
Added documentation.