Added a thread killing API

Added ngx.thread.kill that gets a list of Lua threads and kills them.
This includes the comments by @agentzh to the cleanup of the threads.
I've also removed the function ngx.thread.kill_sleeping, and it seems to be not useful anymore.

The is a part of pull request #286