Set thread name

It is much easier to identify threads in thread dumps when they have meaningful names
Merge pull request #187 from ash2k/threads

Set thread name