Add attribute global_resource_dir in setup.cfg and load it when starting

Add attribute global_resource_dir in setup.cfg and load it when starting. global_resource_dir contains  is used to store the frequently used htmls, imgs  or scripts.