lib/content_server.rb
looks like a good place for this common code