Add cp command and copy api endpoint

The cp command and copy api endpoint allows users
to copy files and or folders from a containers filesystem.

Closes #382
Strip leading forward slash from resource