Add cp command.

Allow users to copy in files.
Remove unused $template.
Merge remote-tracking branch 'origin/cp'