populate .gitignore files with non-repository files

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
silence compiler warning

access_checks.c: In function ‘get_scm_creds_sync’:
access_checks.c:129:11: warning: unused variable ‘tries’ [-Wunused-variable]
  int ret, tries=0;
           ^
Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>