Refactoring the site management and more improvements about libs dependencies