Add support for setting script-security

Setting script security is especially needed when using learn-address, which we can already set via augeas but is useless without script-security.