refactor copy_root_module_to to copy_module_to and add support for ignore

https://tickets.puppetlabs.com/browse/QENG-762