Add .gitignore and move config.php

Now version from git repository will be easier to handle during upgrades
and deployments.