Changed how threading works.

At the suggestion of @dwhly, I have revised how threading works in the app. I think it makes more sense this way. You can try out the changes at http://threads.dokku.hypothes.is/

Hopefully this resolves [github issue 846](https://github.com/hypothesis/h/issues/846).