unicorn and nginx configuration for graceful restarts using Rails 4 and Capistrano. Also assumes git and rvm but can be changed.