Implement Setting model.

- Restrict user registration based on allow_user_registration? Setting.
- Move flash for unauthorized action to I18n.