Refactoring. ServeHTTP function
Added context. Starting to flesh out the middleware flow