Introducing spec_helper and cleaning up requires.
Lookup the best local IP to use as origin header

[#54288584]