added new thread.clj with concurrency helpers