fixes #2127: added support for root password hashing other than MD5

This is an alternative (to https://github.com/theforeman/foreman/pull/1736) implementation. Instead of having a global setting, a per-os attribute has been introduced. 
@witlessbird I was referring to this conversation, it looks like this is done now. I am ready to merge.