Refactor code to use a wrappedHttpRequest function to wrap the repeated HTTP request logic
Merge pull request #2 from caabernathy/master

Refactor HTTP request code