Copy Module: Add the ability to set directory attributes on recursive copy.

Closes GH-6194.

These changes pass attribute modifications through to new directories during a recursive copy with an addition allowing for the directory mode to be set independantly.
copy module: cleanup and if directory_mode not set default to umask
Minor cleanup.
Merge pull request #6218 from risaacson/issues_6194

Copy Module: Add the ability to set directory attributes on recursive copy.