Refactor HWDetect and rendering options setup.
Remove duplication when setting graphic options by reading the configDB directly.
Properly protect the ModIO config keys.
Approved By: linkmauve
Refs #5538
Differential Revision: https://code.wildfiregames.com/D1931