Create .gitignore after init, ignoring log dir.

Ref #19