Towards #4. Function for turning a command into a decent id.
Fixes #4. If unnamed an Execute resource will generate an implicit name for itself.