The leaves of a tree: a dendroidal infinite loop space machine