(refactor) Change Ingot to Middleware.

This compiles.

It does not change the docs/comments/README. These are changed in a separate PR.