Make ThreadFactory configurable (for GAE)
Cleanup callback stuff.