script: provide scripts per-thread information

Expose new `wrk.threadid` and `wrk.nthreads` variables to the lua state of
each thread. These represent the thread id the lua state is running on, and
the total number of running threads, respectively.

This allows lua scripts to make intelligent decisions about how to form and
balance requests across a number of distinct hosts and URI path endpoints.
For example, scripts could use the thread identifier in conjunction with a
per-luastate counter to force all requests to be unique and deterministic,
which is useful in load testing caching servers as well as pre-filling them.