add githook folder
change scripts and test cases for the separate phabricator repo case
rename phabricator to pulic, since it has nothing to do with phabricator
roughly support mirror mode