Clean up Capybara::RackTest::Node#set

Splits one big method into many to improve readability. Tests pass.