[sources] refactor source creation and options handling
* options validation
* ease proper update of source's config on configuration change
functionset_tab(tabname,cookiename){// set appropriate cookieloadRemote('json',ajaxFuncArgs('set_cookie',null,cookiename,tabname));// trigger show + tabname eventtrigger_load(tabname);}