Refactored and ready to accept cookies and parse main request body and query params.