Add support for localstorge on Base.Model and the setting model