Moved around a lot of the HTTP processing code so we now all share the same common request code