Do not unnecessarily recompile OpenVZ envId pattern

The pattern against which lines in /proc/self/status are matched is static and
therefore does not have to be (re-)compiled for every line in the file.
More cloud config unit tests
linting fix
Merge pull request #13678 from rallytime/cloud_config_tests

More cloud config unit tests
Merge pull request #13676 from basepi/cherrypick

Do not unnecessarily recompile OpenVZ envId pattern
Make salt-key create the right key dirs
Here you go @mgwilliams, I have not tested this!!

But it should not cause any problems, please test it and fix it up!
Genericize key generation for raet/zeromq
copy and rename should pass name instead of dname when makedirs is true
Merge pull request #13682 from Tweenagedream/states-file-rename-copy-makedirs-fix

copy and rename should pass name instead of dname when makedirs is true
Fix key gen, earlier commit reffed wrong gen_keys method