Added gitignores to ignore files in test and target directories.