finish home directory and current directory feature in BrowserWindow. And support to detect whether a directory is SharedDoc root directory.