Completely simplify the algorithm to only extend the request object instead of behaving as a stand-alone REST app