base/cmd: Use std::unique_ptr
Remove helpers to discourage using raw pointers and iterating over to delete.

Store std::unique_ptrs instead. Also, no one used the helpers...