support lambdas in threads

@amw does this look good ?
I'll try processes next ...


This block has finished executing by now. You're not testing anything with it.