Fixed issue where settings.php was causing git push to fail.

I added a pre_deploy script to make the file writeable by the user and then created a post_deploy to make it read-only once the deploy is finished.