Added a template for .gitignore.

Contains the files and directories that are generated by running
./bootstrap.

It also masks out .gitignore and the recommended ./build directory.

To use run:
  cp .gitignore-template .gitignore

From: Charlie Carson <ccarson@twitter.com>
Review: https://reviews.apache.org/r/17001