Use custom `Thread` class to set priority properly.
Merge pull request #10 from square/jw/thread-priority

Use custom `Thread` class to set priority properly.