Simplifying HTTP interactions in Scala