Add salt.utils.test_mode

This is the first step in making "test" mode for states
case-insensitive. See #3363.