fix up npm package.json files
include user resolution middleware as appropriate