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. 
I don't see the two guys being used. Is this some kind of ActiveRecord magic?