refactored processor factory
moved http code to an enum
cleaned up server test