Cleanup 'using' statements

Removed using statements that weren't being used. Changed interface
parameter types in IMiddleware.