(refactor) Change Ingot to Middleware.

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