Add a new middleware specifically for js

The ScopeResolver will help JSYokeRequest and JSYokeResponse to know its
executing scope.