[PATCH] Add command-external code.

Also remove some rej files...