Added i18n support and first translations.
Added nonce check to prevent CSRF vulnerability.
Only flush_rules when load the plugin or settings are changed.