Connect/Express middleware to serve JSON stubs for REST endpoints