[examples] Added middleware and updated app configs so that apps use mocked models by default.