Add namespaced_function function

This will allow for imported functions to live under
the new global namespace.

Copied directly from saltcloud.utils
Properly namespace check_perms
namespace get_managed
namespace makedirs_perms
add missing import
add missing import
namespace manage_file
import __clean_tmp from file.py
namespace source_list
namespace maor stuff
namespace functions imported from file.py
remove unnecessary __clean_tmp function
remove unused import, add missing comma
add import tempfile
Merge pull request #5026 from UtahDave/add_namespaced_functions

Add namespaced functions for win_file.py