added run_analysis_with_response method to server_api.rb