Changed the middleware directory to plugins directory to better reflect its purpose and functionality.