Port unicorn to rails3