Refactor to server.rb and results_steps