removed Servlet dependencies and abstracted out utilities for buildign a response