Implement makedirs in file.managed.
use func_alias for makedirs, lint fixes

This commit changes makedirs() to makedirs_() and makes a func_alias, so
that the makedirs params don't override them. It also makes several lint
fixes that clean up unused variables, replaced built-ins, etc.
Pass makedirs to file.managed, file.serialize states

Also some lint fixes, and since states modules aren't supposed to
directly make changes, two calls to os.makedirs() have been replaced.

Conflicts:
	salt/states/file.py
Cleanup call to file.check_managed

This function no longer contains a makedirs param, so remove it.
fix error message when no changes made
win_file: make file.makedirs a func_alias
Fix re-namespacing error
Merge pull request #11709 from cachedout/10446

Implement makedirs in file.managed.