Added a test for threading.
Added a simple example.
Made Processor.in ThreadLocal.