Fixed issues with insecure config option being ignored

Here is a change set with all the patches need to fix the insecure config feature.

Due to the way the insecure variable is declared it will always fail the if check that's made when setting the insecure config variable. I've modified the code to bring it in line with the rest of the config variables that are declared.