Implement more thread-safe API/fix typos

Some important changes:
1) Fixed small (but major) typos in thread-safe API
2) Added `fcgx_write_string`.

Note: Everything seems to be working there, but will set up a demo to spawn threads and send concurrent requests some time tomorrow.