Update .gitignore.
Add some patches.
Add a Gemfile.
Switch to bundle exec.