TMDM-7434: use finer argument during savings for autoRefresh & portlet settings(Top N & Timeframe) for better performance

additionally:
- fix potential bug caused by missing autoRefresh argument in configModel constructor
- code clean-ups/refactoring
(To do:
 1. reset autoRefresh to false if click 'remove' icon on portlet. and save updated visibility
 2. update visibilities to false if user uncheck 'charts' on ActionPanel)
)