add check_include_exclude() to salt.utils

This moves this helper function from salt.states.file.
Fix refs to _check_include_exclude()

Now that this has been moved to salt.utils, fix the refs to point to
this function's new location.
Add include_pat/exclude_pat to fileclient.cache_dir

This uses the include_pat/exclude_pat logic from the file.recurse state
to the fileclient, allowing one to selectively cache the desired files.
Add include_pat/exclude_pat to cp.cache_dir

This uses the include_pat/exclude_pat logic from the file.recurse state
to the cp.cache_dir function, allowing one to selectively cache the
desired files.
Sync only *.py, *.pyx, *.so in saltutil.sync_*

This avoids caching anything but the file types that are needed by
saltutil.sync_*.
Merge pull request #10194 from terminalmage/10160

Sync only *.py, *.pyx, *.so in saltutil.sync_*