Made tornado test server thread safe.
Merge pull request #212 from schlamar/tornado-thread-safe

Made tornado test server thread safe.