Add .gitignore file

Ignore application specific configuration files, cache and log
directories
Remove cache and log directories

Do not version the cache and log directories. These directories should
only be created during installation. See the README file for more info.
Restore RewriteBase to factory-default