Create empty cache, logs, and config directories, fixes #241

By using .gitignore files that will ignore everything except the .gitignore.