Add hgignore for programmer prefer mercurial DRCS

Add generate .hgignore file when create new projects for programmer who prefer use mercurial system and update related test.