Set up directories and .gitignore.