Rename node_alloc to expr_alloc
Add cmd.c with basic alloc and free functions

Untested