cookast: the beginnings of a cooked AST

Main pain point to address: lambda lifting.