New settings component and persistent settings

#691 
 I open this PR as discussion base.